Skip to content

bpo-40609: Remove _Py_hashtable_t.key_size#20060

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:hashtable_remove_key_size
May 13, 2020
Merged

bpo-40609: Remove _Py_hashtable_t.key_size#20060
vstinner merged 1 commit intopython:masterfrom
vstinner:hashtable_remove_key_size

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 12, 2020

Rewrite _Py_hashtable_t type to always store the key as
a "const void *" pointer, and add an explicit field to
_Py_hashtable_entry_t to help the compiler to emit more efficient
code.

Remove _Py_hashtable_t.key_size member.

hash and compare functions drop their hash table parameter, and the
key type becomes "const void *".

https://bugs.python.org/issue40609

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants